package com.deng.Service.impl;

import com.deng.Service.SysLogService;
import com.deng.mapper.SysLogMapper;
import com.deng.model.SysLog;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 邓小熙
 * @Date 2022/6/1 21:01
 * @Version 1.0
 */
@Service
public class SysLogServiceImpl implements SysLogService {
    @Autowired
    SysLogMapper sysLogMapper;

    @Override
    public int insertSysLog(SysLog sysLog) {
        return sysLogMapper.insertSysLog(sysLog);
    }

    @Override
    public List<SysLog> findLogByUserName(String userName) {
        return sysLogMapper.findLogByUserName(userName);
    }
}
